<?php function _tag_phpcms_tag_content_pic_product($data, $number, $rows, $count, $page, $pages, $setting){ global $PHPCMS,$MODULE,$M,$CATEGORY,$TYPE,$AREA,$GROUP,$MODEL,$templateid,$_userid,$_username;@extract($setting);?><?php if(is_array($data)) foreach($data AS $n => $r) { ?>
<li><a href="<?php echo $r['url'];?>" target="<?php echo $target;?>"><img src="<?php echo thumb($r[thumb], $width, $height);?>" width="<?php echo $width;?>" height="<?php echo $height;?>" alt="<?php echo $r['title'];?>" /><?php if($r[style]) { ?><span class="<?php echo $r['style'];?>"><strong><?php echo str_cut($r[title], $titlelen,'');?></strong></span><?php } else { ?><strong><?php echo str_cut($r[title], $titlelen,'');?></strong><?php } ?><span>￥<em><?php echo $r['price'];?></em>元/<?php echo $r['unit'];?></span></a></li>
<?php } ?>
<?php if($pages) { ?><p id="pages"><?php echo $pages;?></p><?php } ?><?php } ?>